/*
 * @Author: YeFei
 * @Date: 2021-11-05 09:17:22
 * @LastEditTime: 2021-11-05 16:45:10
 * @Descripttion: 
 */
import http from "@/utils/http"

const prefixUrl = "/incp/user"
export default {
    role: {
        query: "GET:/incp/user",
        create: "POST:/incp/user",
        select: "GET:/incp/user/:id",
        update: "PUT:/incp/user/:id",
        delete: "DELETE:/incp/user/:id",
    },
    query(params) {
        return http.get(prefixUrl, params)
    },
    create(params) {
        return http.post(prefixUrl, params)
    },
    select(id) {
        return http.get(prefixUrl + "/" + id)
    },
    update(id, params) {
        return http.put(prefixUrl + "/" + id, params)
    },
    delete(id) {
        return http.delete(prefixUrl + "/" + id)
    },
}